package org.tis.tools.auth.security.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * describe: 提供获取用户信息端点
 *
 * @author zhaoch
 * @date 2018/8/28
 **/
@RestController
public class UserController {
    @RequestMapping("/user")
    public Principal user(Principal user) {
        return user;
    }
}
